Optimal. Leaf size=121 \[ \frac{\sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right ),\frac{a+b}{a-b}\right )}{f}-\frac{\cot (e+f x) \sqrt{a+b \sec (e+f x)}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.114954, antiderivative size = 121, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087, Rules used = {3875, 3832} \[ \frac{\sqrt{a+b} \cot (e+f x) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (\sec (e+f x)+1)}{a-b}} F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right )}{f}-\frac{\cot (e+f x) \sqrt{a+b \sec (e+f x)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3875
Rule 3832
Rubi steps
\begin{align*} \int \csc ^2(e+f x) \sqrt{a+b \sec (e+f x)} \, dx &=-\frac{\cot (e+f x) \sqrt{a+b \sec (e+f x)}}{f}+\frac{1}{2} b \int \frac{\sec (e+f x)}{\sqrt{a+b \sec (e+f x)}} \, dx\\ &=\frac{\sqrt{a+b} \cot (e+f x) F\left (\sin ^{-1}\left (\frac{\sqrt{a+b \sec (e+f x)}}{\sqrt{a+b}}\right )|\frac{a+b}{a-b}\right ) \sqrt{\frac{b (1-\sec (e+f x))}{a+b}} \sqrt{-\frac{b (1+\sec (e+f x))}{a-b}}}{f}-\frac{\cot (e+f x) \sqrt{a+b \sec (e+f x)}}{f}\\ \end{align*}
Mathematica [A] time = 1.1934, size = 120, normalized size = 0.99 \[ \frac{b \sqrt{\frac{a+b \sec (e+f x)}{(a+b) (\sec (e+f x)+1)}} \text{EllipticF}\left (\sin ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right ),\frac{a-b}{a+b}\right )-\csc (e+f x) \sqrt{\frac{1}{\sec (e+f x)+1}} (a \cos (e+f x)+b)}{f \sqrt{\frac{1}{\sec (e+f x)+1}} \sqrt{a+b \sec (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.278, size = 264, normalized size = 2.2 \begin{align*} -{\frac{ \left ( -1+\cos \left ( fx+e \right ) \right ) ^{2} \left ( 1+\cos \left ( fx+e \right ) \right ) ^{2}}{f \left ( a\cos \left ( fx+e \right ) +b \right ) \left ( \sin \left ( fx+e \right ) \right ) ^{5}} \left ( \sqrt{{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}\sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{ \left ( a+b \right ) \left ( 1+\cos \left ( fx+e \right ) \right ) }}}{\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},\sqrt{{\frac{a-b}{a+b}}} \right ) b\sin \left ( fx+e \right ) \cos \left ( fx+e \right ) +{\it EllipticF} \left ({\frac{-1+\cos \left ( fx+e \right ) }{\sin \left ( fx+e \right ) }},\sqrt{{\frac{a-b}{a+b}}} \right ) \sqrt{{\frac{\cos \left ( fx+e \right ) }{1+\cos \left ( fx+e \right ) }}}\sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{ \left ( a+b \right ) \left ( 1+\cos \left ( fx+e \right ) \right ) }}}\sin \left ( fx+e \right ) b+ \left ( \cos \left ( fx+e \right ) \right ) ^{2}a+b\cos \left ( fx+e \right ) \right ) \sqrt{{\frac{a\cos \left ( fx+e \right ) +b}{\cos \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right ) + a} \csc \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\sqrt{b \sec \left (f x + e\right ) + a} \csc \left (f x + e\right )^{2}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a + b \sec{\left (e + f x \right )}} \csc ^{2}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{b \sec \left (f x + e\right ) + a} \csc \left (f x + e\right )^{2}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]